package com.sg.service.biz.bff.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import com.sg.common.util.CommonFunctionHelper;
import com.sg.common.util.RedisUtil;
import com.sg.dto.biz.bff.req.BffImplementMobileCurrentUserEmploymentRecordReqDto;
import com.sg.dto.biz.bff.req.BffQueryMobileMainNavigationListReqDto;
import com.sg.dto.biz.bff.req.BffQuerySpaceIdLookupDetailReqDto;
import com.sg.dto.biz.bff.res.BffImplementMobileCurrentUserEmploymentRecordRespDto;
import com.sg.dto.biz.bff.res.BffQueryMobileMainNavigationListRespDto;
import com.sg.dto.biz.bff.res.BffQuerySpaceIdLookupDetailRespDto;
import com.sg.service.biz.bff.MobileFrameworkService;
import com.sg.common.exception.Assert;
import com.wicket.okrcomponent.integration.ConfSchemeService;
import com.wicket.okrcomponent.integration.MobileEndShellService;
import com.wicket.okrcomponent.integration.MobileFrameworkService;
import com.wicket.okrcomponent.integration.dto.*;
import com.wicket.okrframework.integration.MemberService;
import com.wicket.okrframework.integration.MobileFrameworkService;
import com.wicket.okrframework.integration.OrgService;
import com.wicket.okrframework.integration.dto.*;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.stream.Collectors;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class MobileFrameworkServiceImpl implements MobileFrameworkService {

    @Resource
    private RedisUtil redisUtil;
    @Resource
    com.sg.service.biz.framework.MobileFrameworkService fwBaseMobileFrameworkClient;
    @Resource
    com.sg.service.biz.component.ConfSchemeService fwCompConfSchemeClient;

    @Resource
    com.sg.service.biz.component.MobileFrameworkService fwCompMobileFrameworkClient;
    @Resource
    com.sg.service.biz.component.MobileEndShellService fwCompMobileEndShellClient;

    @Resource
    com.sg.service.biz.framework.MemberService fwBaseMemberClient;

    @Resource
    com.sg.service.biz.framework.OrgService fwBaseOrgClient;

    /**
     * B1查询空间编号查空间ID详情[9037]
     * gen by moon at 4/1/2024, 2:17:58 AM
     */
    @Trace(operationName = "B1查询空间编号查空间ID详情")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQuerySpaceIdLookupDetailRespDto querySpaceIdLookupDetail(BffQuerySpaceIdLookupDetailReqDto reqDto) {


        QuerySpaceIdLookupDetailComRespDto querySpaceIdLookupDetailComRespDto_1 = null;
//步骤0: D1查询空间编号查空间ID详情等(公共) - querySpaceIdLookupDetailCom
        QuerySpaceIdLookupDetailComRespDto querySpaceIdLookupDetailComRespDto = null;
        QuerySpaceIdLookupDetailComReqDto querySpaceIdLookupDetailComReqDto = new QuerySpaceIdLookupDetailComReqDto();
        if (reqDto != null) {
            querySpaceIdLookupDetailComReqDto.setOrganizationNumber(reqDto.getOrganizationNumber());//SimpleFieldAssign//sourceId:1683083_1
        }

        /*D1查询空间编号查空间ID详情等(公共)[9035]   */
        Assert.isNull(querySpaceIdLookupDetailComReqDto.getOrganizationNumber(), "B1查询空间编号查空间ID详情-D1查询空间编号查空间ID详情等(公共)-空间编号不能为空", false);
        querySpaceIdLookupDetailComRespDto = fwBaseMobileFrameworkClient.querySpaceIdLookupDetailCom(querySpaceIdLookupDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        querySpaceIdLookupDetailComRespDto_1 = querySpaceIdLookupDetailComRespDto;

        BffQuerySpaceIdLookupDetailRespDto retData = new BffQuerySpaceIdLookupDetailRespDto();
        if (querySpaceIdLookupDetailComRespDto_1 != null) {
            retData.setSpaceId(querySpaceIdLookupDetailComRespDto_1.getSpaceId());//SimpleFieldAssign//sourceId:1683100_1
            retData.setAppId(querySpaceIdLookupDetailComRespDto_1.getAppId());//SimpleFieldAssign//sourceId:1683101_1
            retData.setOrganizationNumber(querySpaceIdLookupDetailComRespDto_1.getOrganizationNumber());//SimpleFieldAssign//sourceId:1683102_1
            retData.setSpaceName(querySpaceIdLookupDetailComRespDto_1.getSpaceName());//SimpleFieldAssign//sourceId:1683103_1
            retData.setSpaceLogo(querySpaceIdLookupDetailComRespDto_1.getSpaceLogo());//SimpleFieldAssign//sourceId:1683104_1
            retData.setWebsite(querySpaceIdLookupDetailComRespDto_1.getWebsite());//SimpleFieldAssign//sourceId:1683105_1
            retData.setAppLogo(querySpaceIdLookupDetailComRespDto_1.getAppLogo());//SimpleFieldAssign//sourceId:1683106_1
            retData.setAboutLogo(querySpaceIdLookupDetailComRespDto_1.getAboutLogo());//SimpleFieldAssign//sourceId:1683107_1
            retData.setAppBanner(querySpaceIdLookupDetailComRespDto_1.getAppBanner());//SimpleFieldAssign//sourceId:1683108_1
            retData.setAppBigBanner(querySpaceIdLookupDetailComRespDto_1.getAppBigBanner());//SimpleFieldAssign//sourceId:1683109_1
            retData.setServicePhone(querySpaceIdLookupDetailComRespDto_1.getServicePhone());//SimpleFieldAssign//sourceId:1683110_1
            retData.setServiceTime(querySpaceIdLookupDetailComRespDto_1.getServiceTime());//SimpleFieldAssign//sourceId:1683111_1
            retData.setCopyright(querySpaceIdLookupDetailComRespDto_1.getCopyright());//SimpleFieldAssign//sourceId:1683112_1
            retData.setAppVersion(querySpaceIdLookupDetailComRespDto_1.getAppVersion());//SimpleFieldAssign//sourceId:1683113_1
            retData.setSenderMemberId(querySpaceIdLookupDetailComRespDto_1.getSenderMemberId());//SimpleFieldAssign//sourceId:1683114_1
        }


        return retData;
    }

    /**
     * B2查询移动端主导航列表[9008]
     * gen by moon at 4/1/2024, 2:39:30 AM
     */
    @Trace(operationName = "B2查询移动端主导航列表")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryMobileMainNavigationListRespDto queryMobileMainNavigationList(BffQueryMobileMainNavigationListReqDto reqDto) {


        QueryMobileMainNavigationListComRespDto queryMobileMainNavigationListComRespDto_1 = null;
//步骤0: D2-3查询框架导航菜单列表 - queryFrameNavMenusList
        QueryFrameNavMenusListRespDto queryFrameNavMenusListRespDto = null;
        QueryFrameNavMenusListReqDto queryFrameNavMenusListReqDto = new QueryFrameNavMenusListReqDto();
        queryFrameNavMenusListReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1681118_1
        if (reqDto != null) {
            queryFrameNavMenusListReqDto.setConfItemCode(reqDto.getConfItemCode());//SimpleFieldAssign//sourceId:1681120_1
        }

        /*D2-3查询框架导航菜单列表[2179]   */
        Assert.isNull(queryFrameNavMenusListReqDto.getConfItemCode(), "B2查询移动端主导航列表-D2-3查询框架导航菜单列表-配置项标识不能为空", false);
        Assert.isNull(queryFrameNavMenusListReqDto.getResultAspObjId(), "B2查询移动端主导航列表-D2-3查询框架导航菜单列表-开通对象ID不能为空", false);
        queryFrameNavMenusListRespDto = fwCompConfSchemeClient.queryFrameNavMenusList(queryFrameNavMenusListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//步骤1: D2-3判断UCD菜单(边界) - judgeUcdMenuBorder
        JudgeUcdMenuBorderRespDto judgeUcdMenuBorderRespDto = null;
        JudgeUcdMenuBorderReqDto judgeUcdMenuBorderReqDto = new JudgeUcdMenuBorderReqDto();
        if (reqDto != null) {
            judgeUcdMenuBorderReqDto.setRoleMemberId(reqDto.getRoleMemberId());//SimpleFieldAssign//sourceId:1681110_1
            judgeUcdMenuBorderReqDto.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1681104_1
            judgeUcdMenuBorderReqDto.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:1681105_1
            judgeUcdMenuBorderReqDto.setLevelNumber(reqDto.getLevelNumber());//SimpleFieldAssign//sourceId:1681106_1
            judgeUcdMenuBorderReqDto.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1681111_1
            judgeUcdMenuBorderReqDto.setDeptBusinessIdentity(reqDto.getDeptBusinessIdentity());//SimpleFieldAssign//sourceId:1681112_1
        }

        /*D2-3判断UCD菜单(边界)[2177]   */
        Assert.isNull(judgeUcdMenuBorderReqDto.getInductionRecordId(), "B2查询移动端主导航列表-D2-3判断UCD菜单(边界)-就职记录ID不能为空", false);
        judgeUcdMenuBorderRespDto = fwCompConfSchemeClient.judgeUcdMenuBorder(judgeUcdMenuBorderReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//步骤2: D2查询移动端主导航列表(公共) - queryMobileMainNavigationListCom
        QueryMobileMainNavigationListComRespDto queryMobileMainNavigationListComRespDto = null;
        if (judgeUcdMenuBorderRespDto != null) {
            QueryMobileMainNavigationListComReqDto queryMobileMainNavigationListComReqDto = new QueryMobileMainNavigationListComReqDto();
            if (judgeUcdMenuBorderRespDto != null) {
                queryMobileMainNavigationListComReqDto.setMenuOrientedIdentification(judgeUcdMenuBorderRespDto.getEndValue());//SimpleFieldAssign//sourceId:1681115_1
            }
            if (reqDto != null) {
                queryMobileMainNavigationListComReqDto.setDeptBusinessIdentity(reqDto.getDeptBusinessIdentity());//SimpleFieldAssign//sourceId:1681114_1
            }
            if (queryFrameNavMenusListRespDto != null && queryFrameNavMenusListRespDto.getFrameNavMenusList() != null && !CollectionUtil.isEmpty(queryFrameNavMenusListRespDto.getFrameNavMenusList())) {
                queryMobileMainNavigationListComReqDto.setMainNavMenusList(//objList-to-objLists
                        queryFrameNavMenusListRespDto.getFrameNavMenusList().stream().map(item -> {
                            MainNavMenusDto elm = new MainNavMenusDto();
                            if (item != null) {
                                elm.setMenuCode(item.getConfOptionCode());//SimpleFieldAssign//sourceId:326940_2
                                elm.setMenuName(item.getEndValue());//SimpleFieldAssign//sourceId:326941_2
                                elm.setMenuIcon(item.getExtensionField1());//SimpleFieldAssign//sourceId:326942_2
                                elm.setMenuIsVisible(item.getExtensionField2());//SimpleFieldAssign//sourceId:326943_2
                                elm.setMenuPath(item.getExtensionField3());//SimpleFieldAssign//sourceId:326944_2
                                elm.setMenuOrderNumber(String.valueOf(item.getConfOptionSortNum()));//SimpleFieldAssign//sourceId:326945_2
                            }
                            return elm;
                        }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1681113_1
            }

            /*D2查询移动端主导航列表(公共)[8973]   */
            Assert.isNull(queryMobileMainNavigationListComReqDto.getMenuOrientedIdentification(), "B2查询移动端主导航列表-D2查询移动端主导航列表(公共)-UCD菜单导向标识不能为空", false);
            Assert.isNull(queryMobileMainNavigationListComReqDto.getDeptBusinessIdentity(), "B2查询移动端主导航列表-D2查询移动端主导航列表(公共)-部门业务身份不能为空", false);
            queryMobileMainNavigationListComRespDto = fwCompMobileFrameworkClient.queryMobileMainNavigationListCom(queryMobileMainNavigationListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            queryMobileMainNavigationListComRespDto_1 = queryMobileMainNavigationListComRespDto;
        }

        BffQueryMobileMainNavigationListRespDto retData = new BffQueryMobileMainNavigationListRespDto();
        if (queryMobileMainNavigationListComRespDto_1 != null) {
            retData.setAdjustMainNavigationSortingList(queryMobileMainNavigationListComRespDto_1.getAdjustMainNavigationSortingList().stream().map(item -> BeanUtil.toBean(item, BffAdjustMainNavigationSortingDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1681412_1
        }


        return retData;
    }

    /**
     * B1执行移动端当前用户就职记录[9026]
     * gen by moon at 4/3/2024, 12:01:03 AM
     */
    @Trace(operationName = "B1执行移动端当前用户就职记录")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffImplementMobileCurrentUserEmploymentRecordRespDto implementMobileCurrentUserEmploymentRecord(BffImplementMobileCurrentUserEmploymentRecordReqDto reqDto) {


        ImplementGroupDeduplicationRecordCircularCombinationDeptComRespDto implementGroupDeduplicationRecordCircularCombinationDeptComRespDto_1 = null;
        BatchQueryMemberProfileListByIdsComRespDto batchQueryMemberProfileListByIdsComRespDto_1 = null;
        BatchQueryDeptListRespDto batchQueryDeptListRespDto_1 = null;
//步骤0: D1查询移动端当前用户就职记录列表(公共) - queryMobileCurrentUserEmploymentRecordListCom
        QueryMobileCurrentUserEmploymentRecordListComRespDto queryMobileCurrentUserEmploymentRecordListComRespDto = null;
        QueryMobileCurrentUserEmploymentRecordListComReqDto queryMobileCurrentUserEmploymentRecordListComReqDto = new QueryMobileCurrentUserEmploymentRecordListComReqDto();


        /*D1查询移动端当前用户就职记录列表(公共)[8972]   */

        queryMobileCurrentUserEmploymentRecordListComRespDto = fwBaseMobileFrameworkClient.queryMobileCurrentUserEmploymentRecordListCom(queryMobileCurrentUserEmploymentRecordListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


//步骤1: D2执行组合去重部门就职记录(公共) - implementGroupDeduplicationRecordCircularCombinationDeptCom
        ImplementGroupDeduplicationRecordCircularCombinationDeptComRespDto implementGroupDeduplicationRecordCircularCombinationDeptComRespDto = null;
        if (queryMobileCurrentUserEmploymentRecordListComRespDto != null) {
            ImplementGroupDeduplicationRecordCircularCombinationDeptComReqDto implementGroupDeduplicationRecordCircularCombinationDeptComReqDto = new ImplementGroupDeduplicationRecordCircularCombinationDeptComReqDto();
            if (queryMobileCurrentUserEmploymentRecordListComRespDto != null && queryMobileCurrentUserEmploymentRecordListComRespDto.getOrgInductionRecordList() != null && !CollectionUtil.isEmpty(queryMobileCurrentUserEmploymentRecordListComRespDto.getOrgInductionRecordList())) {
                implementGroupDeduplicationRecordCircularCombinationDeptComReqDto.setDataSetsListOne(//objList-to-objLists
                        queryMobileCurrentUserEmploymentRecordListComRespDto.getOrgInductionRecordList().stream().map(item -> {
                            com.wicket.okrcomponent.integration.dto.DataSetsListOneDto elm = new com.wicket.okrcomponent.integration.dto.DataSetsListOneDto();
                            if (item != null) {
                                elm.setInductionRecordId(item.getInductionRecordId());//SimpleFieldAssign//sourceId:327512_2
                                elm.setDeptId(item.getEntityId());//SimpleFieldAssign//sourceId:327513_2
                                elm.setOriginalRoleMemberId(item.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:327836_2
                            }
                            return elm;
                        }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1682113_1
                implementGroupDeduplicationRecordCircularCombinationDeptComReqDto.setDataSetsListTwo(//objList-to-objLists
                        queryMobileCurrentUserEmploymentRecordListComRespDto.getOrgInductionRecordList().stream().map(item -> {
                            DataSetsListTwoDto elm = new DataSetsListTwoDto();
                            if (item != null) {
                                elm.setInductionRecordId(item.getInductionRecordId());//SimpleFieldAssign//sourceId:327515_2
                                elm.setOneDeptId(item.getPrimaryDeptId());//SimpleFieldAssign//sourceId:327516_2
                                elm.setOriginalRoleMemberId(item.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:327837_2
                            }
                            return elm;
                        }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1682114_1
            }

            /*D2执行组合去重部门就职记录(公共)[9018]   */

            implementGroupDeduplicationRecordCircularCombinationDeptComRespDto = fwCompMobileEndShellClient.implementGroupDeduplicationRecordCircularCombinationDeptCom(implementGroupDeduplicationRecordCircularCombinationDeptComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            implementGroupDeduplicationRecordCircularCombinationDeptComRespDto_1 = implementGroupDeduplicationRecordCircularCombinationDeptComRespDto;
        }

//步骤2: D1批量查成员个人资料列表(公共) - batchQueryMemberProfileListByIdsCom
        BatchQueryMemberProfileListByIdsComRespDto batchQueryMemberProfileListByIdsComRespDto = null;
        if (implementGroupDeduplicationRecordCircularCombinationDeptComRespDto != null) {
            BatchQueryMemberProfileListByIdsComReqDto batchQueryMemberProfileListByIdsComReqDto = new BatchQueryMemberProfileListByIdsComReqDto();
            if (implementGroupDeduplicationRecordCircularCombinationDeptComRespDto != null && implementGroupDeduplicationRecordCircularCombinationDeptComRespDto.getDataSetDuplicateRemovalList() != null && !CollectionUtil.isEmpty(implementGroupDeduplicationRecordCircularCombinationDeptComRespDto.getDataSetDuplicateRemovalList())) {
                batchQueryMemberProfileListByIdsComReqDto.setBeginMemberList(implementGroupDeduplicationRecordCircularCombinationDeptComRespDto.getDataSetDuplicateRemovalList().stream().map(item -> String.valueOf(item.getOriginalRoleMemberId()))
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1682537_1
            }

            /*D1批量查成员个人资料列表(公共)[7492]   */

            batchQueryMemberProfileListByIdsComRespDto = fwBaseMemberClient.batchQueryMemberProfileListByIdsCom(batchQueryMemberProfileListByIdsComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            batchQueryMemberProfileListByIdsComRespDto_1 = batchQueryMemberProfileListByIdsComRespDto;
        }

//步骤3: D1-3批量查询部门列表	 - batchQueryDeptList
        BatchQueryDeptListRespDto batchQueryDeptListRespDto = null;
        if (implementGroupDeduplicationRecordCircularCombinationDeptComRespDto != null) {
            BatchQueryDeptListReqDto batchQueryDeptListReqDto = new BatchQueryDeptListReqDto();
            batchQueryDeptListReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1682550_1
            if (implementGroupDeduplicationRecordCircularCombinationDeptComRespDto != null && implementGroupDeduplicationRecordCircularCombinationDeptComRespDto.getDataSetDuplicateRemovalList() != null && !CollectionUtil.isEmpty(implementGroupDeduplicationRecordCircularCombinationDeptComRespDto.getDataSetDuplicateRemovalList())) {
                batchQueryDeptListReqDto.setDeptList(implementGroupDeduplicationRecordCircularCombinationDeptComRespDto.getDataSetDuplicateRemovalList().stream().map(item -> String.valueOf(item.getDeptId()))
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1682548_1
            }

            /*D1-3批量查询部门列表	[1182]   */
            Assert.isNull(batchQueryDeptListReqDto.getSubjectLifeCycle(), "B1执行移动端当前用户就职记录-D1-3批量查询部门列表	-主体生命周期不能为空", false);
            batchQueryDeptListRespDto = fwBaseOrgClient.batchQueryDeptList(batchQueryDeptListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            batchQueryDeptListRespDto_1 = batchQueryDeptListRespDto;
        }

        BffImplementMobileCurrentUserEmploymentRecordRespDto retData = new BffImplementMobileCurrentUserEmploymentRecordRespDto();
        //数据集融合  MoreListToOneSource
        if (implementGroupDeduplicationRecordCircularCombinationDeptComRespDto_1 != null && !CollectionUtil.isEmpty(implementGroupDeduplicationRecordCircularCombinationDeptComRespDto_1.getDataSetDuplicateRemovalList())) {
            for (DataSetDuplicateRemovalDto dataSetDuplicateRemovalDto : implementGroupDeduplicationRecordCircularCombinationDeptComRespDto_1.getDataSetDuplicateRemovalList()) {
                BffMobileCurrentUserEmploymentRecordDto retElm = new BffMobileCurrentUserEmploymentRecordDto();
                if (implementGroupDeduplicationRecordCircularCombinationDeptComRespDto_1 != null) {
                    retElm.setInductionRecordId(dataSetDuplicateRemovalDto.getInductionRecordId());//SimpleFieldAssign//sourceId:327859_2
                    retElm.setDeptId(dataSetDuplicateRemovalDto.getDeptId());//SimpleFieldAssign//sourceId:327860_2
                    retElm.setOriginalRoleMemberId(dataSetDuplicateRemovalDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:327861_2
                }
                retData.getMobileCurrentUserEmploymentRecordList().add(retElm);
                if (batchQueryMemberProfileListByIdsComRespDto_1 != null) {
                    for (BeginMemberDto beginMemberDto : batchQueryMemberProfileListByIdsComRespDto_1.getBeginMemberList()) {
                        if (beginMemberDto.getOriginalRoleMemberId().equals(dataSetDuplicateRemovalDto.getOriginalRoleMemberId())) {
                            if (batchQueryMemberProfileListByIdsComRespDto_1 != null) {
                                retElm.setRoleMemberCode(beginMemberDto.getRoleMemberCode());//SimpleFieldAssign//sourceId:327862_2
                                retElm.setUserId(beginMemberDto.getUserId());//SimpleFieldAssign//sourceId:327863_2
                                retElm.setUserFace(beginMemberDto.getUserFace());//SimpleFieldAssign//sourceId:327864_2
                                retElm.setIdCardName(beginMemberDto.getIdCardName());//SimpleFieldAssign//sourceId:327865_2
                                retElm.setNickName(beginMemberDto.getNickName());//SimpleFieldAssign//sourceId:327866_2
                                retElm.setFirstLetter(beginMemberDto.getFirstLetter());//SimpleFieldAssign//sourceId:327867_2
                            }
                        }
                    }
                }

                if (batchQueryDeptListRespDto_1 != null) {
                    for (DeptDto deptDto : batchQueryDeptListRespDto_1.getDeptList()) {
                        if (deptDto.getDeptId().equals(dataSetDuplicateRemovalDto.getDeptId())) {
                            if (batchQueryDeptListRespDto_1 != null) {
                                retElm.setDeptShortName(deptDto.getDeptShortName());//SimpleFieldAssign//sourceId:327868_2
                            }
                        }
                    }
                }

            }
        }//sourceId:1682558_1


        return retData;
    }
    //
}
